<div id="content-stock">
    <?if ($this->admin()->stocks()) :?>
    <? foreach ($this->admin()->stocks() as $stock):?>
        <?/** @var $stock Application_Model_Stock */?>
        <div class="stock">
            <h3><a class="info-text" href="/stock/<?= $stock->getId(); ?>"><?= $stock->getTitle(); ?></a></h3>
            <img class="icon" src="<?=$this->baseUrl(); ?>/i/stock/<?= $stock->getPhoto(); ?>" />
        </div>
    <? endforeach; ?>
    <? else: ?>
        <h4>На данный момент не проводится ни одной акции.</h4>
    <? endif;?>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $("a[rel=\"rent-stock\"]").prettyPhoto(
            {
                "social_tools": '',
                "keyboard_shortcuts": false,
                default_height:190,
                deeplinking: false
            }
        );
    });
</script>